package com.service;

import com.domain.Article;
import com.github.pagehelper.PageInfo;

public interface ArticleService {
    PageInfo<Article> selectAll(int pageNumber, int pageSize);

    void delete(int id);

    void insert(Article article);

    void update(Article article);

    Article selectById(int id);

    PageInfo<Article> queryByOne(int pageNumber, int pageSize);

    PageInfo<Article> queryByZero(int pageNumber, int pageSize);
}
